#ifndef _Koopa_h_
#define _Koopa_h_
#include<windows.h>
#include "Sprite.h"
#include "StaticObjects.h"
#include"Camara.h"
#include"Goomba.h"
class CKoopa
{
	int id;
	float x;
	float y;
	float xprev;
	float yprev;
	int width;
	int height;
	float vx;
	float vy;
	
	bool isfalling;
	bool touchx;
	bool ishide;
	
	CSprite *KoopaLeft;
	CSprite *KoopaRight;
	CSprite *PushedKoopa;
	CSprite *FiredKoopa;
public:	
	CKoopa(float x,float y,int width,int height);
	~CKoopa();
	bool moveleft;
	bool isrun; 
	bool ispause;
	bool befired;
	bool touch_left;
	RECT getRECT();
	void BePushed();
	void BeFired();
	void Move(CStaticObjects *StaticObject,RECT screen);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
	int CollisionWithMario(bool is_star_man,RECT marioRect,int direction);	
	bool CollisionWithGoomba(CGoomba *goomba);
};
#endif
